﻿<UserControl x:Class="BadHabit.Factory.Controls.Timer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             
    xmlns:props="clr-namespace:BadHabit.Factory.Properties"             
             
    Height="100" Width="100"
             
             
             
    Loaded="UserControl_Loaded">
    
    <UserControl.Resources>
        <SolidColorBrush x:Key="NormalBrush" Color="#808080"/>
        <SolidColorBrush x:Key="OverTimeBrush" Color="Red"/>
    </UserControl.Resources>
    
    
    <Border Style="{StaticResource HighLightBorder}">
      

            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
          MouseLeftButtonUp="Grid_MouseLeftButtonUp">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width=".42*"/>
                    <ColumnDefinition Width=".08*"/>
                    <ColumnDefinition Width=".42*"/>
                </Grid.ColumnDefinitions>
                <Viewbox Grid.Column="0" VerticalAlignment="Stretch">
                    <TextBlock x:Name="MinTextBlock" Foreground="{StaticResource NormalBrush}" FontFamily="Impact" />
                </Viewbox>
                <Viewbox Grid.Column="1" VerticalAlignment="Stretch">
                    <TextBlock x:Name="TwoDots" Text=":" Foreground="{StaticResource NormalBrush}"  FontFamily="Impact"/>
                </Viewbox>
                <Viewbox Grid.Column="2" VerticalAlignment="Stretch">
                    <TextBlock x:Name="SecTextBlock" Foreground="{StaticResource NormalBrush}" FontFamily="Impact"/>
                </Viewbox>




                <Grid.ToolTip>
                <TextBlock FontSize="{StaticResource NeedToSeeFontSize}" Text="{x:Static props:Resources.Click_here_to_start_the_clock}"/>
            </Grid.ToolTip>

            </Grid>

          
    </Border>
    

        
    
</UserControl>
